package com.ps.service.setting;

import java.util.List;
import java.util.Set;

import com.ps.entity.Result;
import com.ps.pojo.setting.Role;
import com.ps.service.BaseService;


public interface RoleService extends BaseService<Role> {

	public Result addRole(Role role, List<Integer> permissionIds);
	
	public Result updateRole(Role role, List<Integer> permissionIds);
	
	public Result queryRoleDetail(Integer roleId);
		
	/**
	 * 查找管理员角色
	 * @return
	 */
	public Result findManagerRole();
	
	/**
	 * 查找角色权限相关ID
	 * @param roleId
	 * @return
	 */
    public Set<Integer> queryPermissionIdsByRoleId(Integer roleId); 
}
